package com.cskaoyan.market.controller;

import com.cskaoyan.market.db.domain.MarketFeedback;
import com.cskaoyan.market.service.WxFeedbackService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MYM
 * @Date: 2024/05/20/20:15
 * @Description:
 */
@RestController
@RequestMapping("/wx/feedback")
public class WxFeedbackController {
    @Autowired
    WxFeedbackService feedbackService;
    @PostMapping("/submit")
    public Object commit(@RequestBody MarketFeedback marketFeedback){
        System.out.println("commit feedback commit feedback commit feedback");
        feedbackService.submit(marketFeedback);
        return ResponseUtil.ok(null);
    }
}
